package com.yifi.module.jwflow.service;

import io.gitee.yaoshanli.engine.GroupUsers;
import io.gitee.yaoshanli.engine.domain.UserModel;

import java.util.ArrayList;
import java.util.List;

public class GetGroupUsers extends GroupUsers {

    @Override
    public List<UserModel> getUsers() {
        String group=getGroup();    //条件组人员
        int filter=getIs_filter();  //过滤条件

        List<UserModel> users=new ArrayList<UserModel>();
        switch(group) {
            case "0":
                users=new ArrayList<UserModel>();
                break;
            case "1":
                UserModel userModel=new UserModel();
                userModel.setText("管理员");
                userModel.setValue("admin");
                users.add(userModel);
                break;
            default:

        }
        return users;
    }
}
